home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / zlaty kalich / zlatykalich / ZlatyKalich.exe / scripts / DefineButton2_1710 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-12-02  |  2KB  |  89 lines

  1. on(release){
  2.    if(_root.draglej == 0)
  3.    {
  4.       if(_root.hoffmanstate == 1)
  5.       {
  6.          if(_root.izvuk == 1)
  7.          {
  8.             _root.loadzvuk.gotoAndPlay("hovtalk_talk");
  9.          }
  10.          else
  11.          {
  12.             _root.hovtalk.gotoAndPlay("talk");
  13.          }
  14.       }
  15.       else if(_root.izvuk == 1)
  16.       {
  17.          _root.loadzvuk.gotoAndPlay("hovtalk_netalk");
  18.       }
  19.       else
  20.       {
  21.          _root.hovtalk.gotoAndPlay("netalk");
  22.       }
  23.    }
  24.    else if(2 >= _root.hoffmanstate)
  25.    {
  26.       if(_root.draglej == 22)
  27.       {
  28.          _root.stopdragall();
  29.          _root.hoffmanstate = 3;
  30.          _root.itembar_remove(22);
  31.          call("/:gotosprej");
  32.       }
  33.       else
  34.       {
  35.          _root.stopdragall();
  36.          if(_root.izvuk == 1)
  37.          {
  38.             _root.loadzvuk.gotoAndPlay("hovtalk_knicemu");
  39.          }
  40.          else
  41.          {
  42.             _root.hovtalk.gotoAndPlay("knicemu");
  43.          }
  44.       }
  45.    }
  46.    else if(_root.hoffmanstate == 3)
  47.    {
  48.       if(_root.draglej == 23)
  49.       {
  50.          _root.stopdragall();
  51.          _root.hoffmanstate = 4;
  52.          _root.itembar_remove(23);
  53.          call("/:gotolano");
  54.       }
  55.       else
  56.       {
  57.          _root.stopdragall();
  58.          if(_root.izvuk == 1)
  59.          {
  60.             _root.loadzvuk.gotoAndPlay("hovtalk_tanec");
  61.          }
  62.          else
  63.          {
  64.             _root.hovtalk.gotoAndPlay("tanec");
  65.          }
  66.       }
  67.    }
  68.    else if(_root.hoffmanstate >= 4)
  69.    {
  70.       if(_root.draglej == 24)
  71.       {
  72.          _root.stopdragall();
  73.          call("/:gotoslzy");
  74.       }
  75.       else
  76.       {
  77.          _root.stopdragall();
  78.          if(_root.izvuk == 1)
  79.          {
  80.             _root.loadzvuk.gotoAndPlay("hovtalk_knicemu2");
  81.          }
  82.          else
  83.          {
  84.             _root.hovtalk.gotoAndPlay("knicemu2");
  85.          }
  86.       }
  87.    }
  88. }
  89.